package com.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.dao.IRetPrdAbnDao;
import com.model.Ret_prd_abn;
import com.model.Ret_prd_abnId;
import com.model.Ret_prd_indt;

@Repository
public class RetPrdAbnHibernateDao extends GenericHibernateDao<Ret_prd_abn, Ret_prd_abnId> 
	implements IRetPrdAbnDao{

	public List<Ret_prd_abn> getHoldDetailByPrd(String prd_seq_id) {
		List<Ret_prd_abn> ret_prd_abnList = new ArrayList<Ret_prd_abn>(); 
		String querySql = "FROM Ret_prd_abn where id.prd_seq_id_fk ='"+ prd_seq_id + "'";
		ret_prd_abnList = this.find(querySql);
		return ret_prd_abnList;
	}
}
